package com.wzdigit.wms.wms.rpc.basic;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import com.wzdigit.wms.basic.domain.basic.SkuCate;
import com.wzdigit.wms.basic.mapper.core.basic.SkuCateMapper;
import com.wzdigit.wms.wms.api.basic.SkuCateApi;
import com.wzdigit.wms.wms.dto.basic.SkuCateApiDto;
import net.dreamlu.mica.core.utils.BeanUtil;

@Service(version = "${dubbo.providers.skucate.api.version:1.0}")
public class SkuCateApiImplService implements SkuCateApi {

	@Autowired
    private SkuCateMapper skuCateMapper;
	
	@Override
	public SkuCateApiDto findBySkuCateId(Integer skuCateId) {
		SkuCate skuCate = skuCateMapper.selectById(skuCateId);
		SkuCateApiDto skuCateApiDto = new SkuCateApiDto();
        BeanUtil.copyNonNull(skuCate, skuCateApiDto);
        return skuCateApiDto;
	}

}
